<?php
namespace Portal\Controller;

use Common\Controller\HomebaseController;

class ArticleController extends HomebaseController {
    //文章内页
    public function index() {
    	$article_id=I('id',0,'intval');
    	$posts_model=M("Posts");
    	$article=$posts_model->alias("a")->where(array('a.id'=>$article_id,))->find();
    	$this->assign('article',$article);
		$this->display(":show");
    }
    
}
